package com.road7.mina.customCodec;

import org.apache.mina.core.session.IoSession;

import com.road7.mina.simpledemo.PBMessage;

/**
 * @Description :
 * @FileName: RouteHandler1.java
 * @Author :WeiHui.Zhang
 * @Data : 2015年11月20日 上午11:06:11
 * @Version:V1.00
*/
public class RouteHandler1 extends RouteHandler{

	private String handName;
	
	public RouteHandler1(String handName) {
		super(handName);
		this.handName = handName;
	}
	
	@Override
	public void messageReceived(IoSession session, Object message) throws Exception {
		
		PBMessage packet = (PBMessage) message;
		//packet.setFrom(handName);
		session.write(message);
	}

}
